package com.tcj.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Tcj
 * @since 2021-01-15
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 头像
     */
    private String header;

    /**
     * 昵称
     */
    private String name;

    /**
     * 性别
     */
    private String sex;

    /**
     * 用户生日
     */
    private LocalDate birthday;

    /**
     * 用户是否开启了评论邮件通知
     */
    private int commentEmail;

    /**
     * 简介
     */
    private String brief;

    /**
     * 记录是否是qq登录用户(0表示不是1表示是)
     */
    private Integer thirdLogin;

    /**
     * qq
     */
    private String qq;

    /**
     * 职业
     */
    private String job;
    /**
     * 邮箱
     */
    private String email;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public int getCommentEmail() {
        return commentEmail;
    }

    public void setCommentEmail(int commentEmail) {
        this.commentEmail = commentEmail;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public Integer getThirdLogin() {
        return thirdLogin;
    }

    public void setThirdLogin(Integer thirdLogin) {
        this.thirdLogin = thirdLogin;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    @Override
    public String toString() {
        return "User{" +
        "id=" + id +
        ", account=" + account +
        ", password=" + password +
        ", phone=" + phone +
        ", header=" + header +
        ", name=" + name +
        ", sex=" + sex +
        ", birthday=" + birthday +
        ", commentEmail=" + commentEmail +
        ", brief=" + brief +
        ", thirdLogin=" + thirdLogin +
        ", qq=" + qq +
        ", job=" + job +
        "}";
    }
}
